package com.huaxin.common.Entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author lwjing
 * @date 2018/5/9
 * @Desc $desc$
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class DataValuesBean implements Parcelable {
    /**
     * dataMold : 0
     * fullCode : 7C0F59_1_w7
     * id : 1
     * name : 远程阻断
     * rw : r
     * unit : m
     * value : 0
     */

    private int    dataMold;
    private String fullCode;
    private int    id;
    private String name;
    private String rw;
    private String unit;
    private String value;

    protected DataValuesBean(Parcel in) {
        dataMold = in.readInt();
        fullCode = in.readString();
        id = in.readInt();
        name = in.readString();
        rw = in.readString();
        unit = in.readString();
        value = in.readString();
    }

    public static final Creator<DataValuesBean> CREATOR = new Creator<DataValuesBean>() {
        @Override
        public DataValuesBean createFromParcel(Parcel in) {
            return new DataValuesBean(in);
        }

        @Override
        public DataValuesBean[] newArray(int size) {
            return new DataValuesBean[size];
        }
    };

    public int getDataMold() {
        return dataMold;
    }

    public void setDataMold(int dataMold) {
        this.dataMold = dataMold;
    }

    public String getFullCode() {
        return fullCode;
    }

    public void setFullCode(String fullCode) {
        this.fullCode = fullCode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRw() {
        return rw;
    }

    public void setRw(String rw) {
        this.rw = rw;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(dataMold);
        parcel.writeString(fullCode);
        parcel.writeInt(id);
        parcel.writeString(name);
        parcel.writeString(rw);
        parcel.writeString(unit);
        parcel.writeString(value);
    }
}